import Vue from "vue"
// import VueRouter from "vue-router"
import VueRouter from "../routerView/index"
Vue.use(VueRouter)

const Home = ()=> import("../views/Home.vue")
const Mine = ()=> import("../views/Mine.vue")


let routes = [
  {
    path:"/",
    redirect:"/home"
  },
  {
    path:"/home",
    name:"Home",
    component:Home
  },
  {
    path:"/mine",
    name:"Mine",
    component:Mine
  },
]

let router = new VueRouter({

  routes
})

export default router